package com.szqhyxj.youxiangju.biz.update;

import android.content.Context;

import com.szqhyxj.youxiangju.BasePresenter;
import com.szqhyxj.youxiangju.biz.update.bean.UpdateInfo;

import java.io.File;

public interface UpdateContract {

    interface Presenter extends BasePresenter {

        void checkUpdate(Context context);

        void downloadAPK(File file, String url);
    }

    interface View {
        void showUpdate(UpdateInfo updateInfo);

        void showDownCompleted(final String appFilePath);

        void showDownProgress(int progress);

        void showDownloadFail();
    }
}